﻿using System;
using System.IO;

namespace TiffLibrary
{
    internal static class TestAssetsDiscoverer
    {

        internal static string FindLibTiffTestImagesDir()
        {
            string repo = Environment.GetEnvironmentVariable("TIFFLIBRARY_TEST_REPO");
            if (repo == null)
            {
                return null;
            }
            string libtiffRepo = Path.Combine(repo, "libtiffpic");
            if (Directory.Exists(libtiffRepo))
            {
                return libtiffRepo;
            }

            return null;
        }

    }
}
